# -*- coding: utf-8 -*-
"""
Created on Tue Sep 19 19:21:02 2023

@author: 楠川之木
"""

x=int(input("输入一个自然数：\n"))
print(bin(x))
print(oct(x))
print(hex(x))